/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: PduRCanTp.h
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: PduR
*
* Revision:
* ------------------------------------------------------------------------------
* v0.1: 
* --Yueting.Ben, 2024-04-16 
* --Initial release

********************************************************************************/

#ifndef PDURCANTP_H
#define PDURCANTP_H

/** HEADER FILES **/
#include "PduRCanTpCfg.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/


/** LOCAL FUNCTION DECLARATION **/
extern void PduR_CanTpRxIndication(
    PduIdType RxPduId, 
    const PduInfoType* PduInfoPtr
);

extern BufReq_ReturnType PduR_CanTpStartOfReception (
    PduIdType id,
    const PduInfoType* info,
    PduLengthType TpSduLength,
    PduLengthType* bufferSizePtr
);

extern BufReq_ReturnType PduR_CanTpCopyRxData (
    PduIdType id,
    const PduInfoType* info,
    PduLengthType* bufferSizePtr
);

extern BufReq_ReturnType PduR_CanTpCopyTxData (
    PduIdType id,
    const PduInfoType* info,
    const RetryInfoType* retry,
    PduLengthType* availableDataPtr
);



#endif

